import request from '@/utils/request.ts'
// 测试查询
export const ceshi = () =>{
    return request.get('/test-person/test')
}

// 测试添加
export const ceshiAdd = (ceshiPerson: any) =>{
    return request.post('/test-person/add', ceshiPerson)
}

// 测试删除
export const ceshiDeleteById = (id:number) =>{
    return request.delete(`/test-person/delete/${id}`)
}

// 测试修改（根据id修改姓名）
export const ceshiUpdateNameById = (ceshiPerson:any) =>{
    return request.put('/test-person/update', ceshiPerson)
}